package com.fh.shop.api.mq.consumer;

import com.fh.shop.api.mq.config.MQConstant;
import com.rabbitmq.client.Channel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class PayConsumer {

    @RabbitListener(queues = MQConstant.Pay.SCORE_QUEUE)
    public void handleScore(String msg, Message message, Channel channel) {

    }

    @RabbitListener(queues = MQConstant.Pay.SALE_QUEUE)
    public void handleSale(String msg, Message message, Channel channel) {

    }

}
